﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>
<%@ Import Namespace="com.IronOne.BoardAppWeb.Controllers" %>
<%@ Import Namespace="com.IronOne.BoardAppWeb.Lang" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	<%=Resources.info_heading_home %>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
     
     <%--<p style="text-align:center;padding-top:120px">
         <asp:Image  id="Img1" runat="server" ImageUrl="~/ContentDownloadApp/images/warterMark.gif"  />
     </p>--%>
     <!-- start container  -->
    <div class="pnltablecontent">
        <!-- panel content header  -->
        <div class="pnlcontentheader"></div>

        <table class="pnlformcontent txtleft frmtable">
            <tbody>
                <!-- Start user name section -->
        <tr>
            <td style="text-align:center;">
                <%--<img src="../../../ContentDownloadApp/Images/logo_pac.jpg" alt="BoardPAC Logo" />--%>
                <img src="<%= Url.Content("~/ContentDownloadApp/Images/logo_pac.jpg")%>" alt="BoardPAC Logo" />
            </td> 
            <td class="install-text">
                  <%
                   ModelState err = ViewContext.ViewData.ModelState["err"];
                   GenException result = null;

                   if (err != null)
                   {
                        result = (GenException)err.Errors.ElementAt(0).Exception;
                   } %>
                   

                <!-- Start notification error message -->
                <% if (result != null)
                   { %>
                        <div class="redtxt">
                        <%: result.Message %>
                        </div>
                        <% if (result.Message.Contains(Resources.Please_update_your_iPad_OS_))
                           { %>
                                <a style="font-size: 18px;" href="http://support.apple.com/kb/HT4623">More info...</a>
                        <% } %>
                <% }
                   else
                   { %>
                       Please click the Download button to install BoardPAC v.<%:DefaultController.GetProductVersion()%> to your iPad.
                <% } %> 
                <!-- End notification error message -->
            </td>
        </tr>

                <tr>
                    <td class="frmdatahead" style="text-align:center;" colspan="2">
                    <% if (result == null)
                       { %>
                        <a href="itms-services://?action=download-manifest&url=<%:DefaultController.GetWebAppIp()%>/Files/deviceId_plist.plist">
                        <input type="submit" title="Get DeviceID App" class="button" value="Get DeviceID App" />
                        </a>

                        <a href="itms-services://?action=download-manifest&url=<%:DefaultController.GetWebAppIp()%>/Files/app_plist.plist">
                        <input type="submit" title="Download" class="button" value="Download" />
                        </a>
                    <% } %>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
</asp:Content>
